It would be really nice if others, and prolifix people like
you, prepared git formatted patches, so that it is much saner
and easier to push and work with contributions as a maintainer
with a dirty tree, and in even more valuable bugs than this
one.. without needing to re-read and re-understand the entire
context of the fix, before fully reimplementing it.
This commit fixes bug #787441, where NaN is polluting the
computer error/tolerance.
for (i = 0; i < samples; i++)
error += fabs (imgA[i] - imgB[i]);
- if (error >= 0.000001)
+ if (!(error < 0.000001))
error /= samples;
else
error = 0.0;